package com.alcj.service;

import com.alcj.model.SelfImg;
import com.alcj.model.SelfMCategory;
import com.alcj.model.SelfPCategory;
import com.alcj.model.SelfProject;

import java.util.List;

/**
 * @author : LiangZhao
 * @version :v1.0
 * @Package : com.alcj.service
 * @Description : 车辆自检用业务接口
 * @date : 2017/10/12 15:40
 */
public interface SelfProjectService {

    /**
     * @Author: liangzhao
     * @Description:获取自检结果
     * @Date: 2017/9/7 16:31
     * @param: record 用户编号
     */
    public List<SelfProject> getSelfProject(String record) throws Exception;

    /**
     * @Author: liangzhao
     * @Description:保存自检结果
     * @Date: 2017/9/7 16:31
     * @param: record 自检结果
     * @param: userId 用户ID
     */
    public int addSelfProject(List<SelfProject> record, String userId) throws Exception;

    /**
     * @Author: liangzhao
     * @Description:编辑自检结果
     * @Date: 2017/9/7 16:31
     * @param: record 自检结果
     */
    public int editSelfProject(List<SelfProject> record) throws Exception;

    /**
     * @Author: liangzhao
     * @Description:删除自检结果
     * @Date: 2017/9/7 16:31
     * @param: record 用户编号
     */
    public int delSelfProject(String record) throws Exception;

    /**
     * @Author: liangzhao
     * @Description:获取自检大分类
     * @Date: 2017/9/7 16:31
     */
    public List<SelfPCategory> getSelfPCategory() throws Exception;

    /**
     * @Author: liangzhao
     * @Description:获取自检项目
     * @Date: 2017/9/7 16:31
     * @param: record 大分类编号
     */
    public List<SelfMCategory> getSelfMCategory(SelfMCategory record) throws Exception;

    /**
     * @Author: liangzhao
     * @Description:获取自检项目图片
     * @Date: 2017/9/7 16:31
     * @param: record 自检项目
     */
    public List<SelfImg> getSelfImg(int record) throws Exception;
}
